package acm.pta4;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;

public class T11 {
    public static void main(String[] args) throws IOException {
        Map<String,Integer> map=new TreeMap<>();
        Set<String> attention=new HashSet<>();
        BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
        String[] read=in.readLine().split(" ");
        for (int i = 1; i < read.length; i++) {
            attention.add(read[i]);
        }
        int n=Integer.parseInt(in.readLine());
        int sum=0;
        while (n-- > 0) {
            read=in.readLine().split(" ");
            int num = Integer.parseInt(read[1]);
            map.put(read[0],num);
            sum+=num;
        }
        int avg =sum/map.size();
        boolean is=true;
        for (Map.Entry<String, Integer> entry : map.entrySet()) {
            if (entry.getValue()>avg&&!attention.contains(entry.getKey())){
                is=false;
                System.out.println(entry.getKey());
            }
        }
        if (is){
            System.out.println("Bing Mei You");
        }
    }
}
